package com.xcx.portal.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.xcx.common.services.CommService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 公共服务controller
 */
@RestController
@RequestMapping(value = "/xcx/comm")
public class CommController {

    @Reference
    private CommService commService;


    /**
     * 保存用户扩展信息
     *
     * @param reqStr
     * @return
     */
    @RequestMapping(value = "/recordInfo", produces = {"application/json;chart=UTF-8"})
    @ResponseBody
    public String recordInfo(@RequestBody String reqStr) {
        return commService.recordInfo(reqStr);
    }


}
